<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>新增新闻</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/statics/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/statics/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<form action="${pageContext.request.contextPath}/news/dosave" method="post" enctype="multipart/form-data">

    新闻标题:<input type="text" name="title"/><br/>
    描述:<input type="text" name="review"/><br/>
    选择类别:<select name="typeId">
    <c:forEach items="${plist}" var="it">

        <option value="${it.id}">${it.typeName}</option>
    </c:forEach>
    </select> <br/>
    作者:<input type="text" name="author"/><br/>
    详情:<textarea name="newsContent" <%--class="ckeditor"--%> ></textarea> <br/>
    封面:<input type="file" name="a_newsImg"/><br/>
    置顶:<input type="radio" name="isTop" value="1"/>是<input type="radio" name="isTop" value="0"/>否<br/>
    创建日期:<input type="text" name="createDate" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/><br/>
    <input type="submit" value="新增新闻"/>
    <a href="/news/list">返回</a>

</form>
</body>
</html>
